package com.qws.plugin.presentation.flutter_presentation.ui

import android.content.Context
import com.danikula.videocache.HttpProxyCacheServer

class HttpProxy private constructor(context: Context) {
    private var proxy: HttpProxyCacheServer

    init {
        proxy = HttpProxyCacheServer(context)
    }

    fun getProxy():HttpProxyCacheServer {
        return proxy
    }
    companion object {
        private var instance: HttpProxy? = null

        @Synchronized
        fun get(context: Context): HttpProxy {
            if (instance == null) {
                instance = HttpProxy(context)
            }
            return instance!!;
        }
    }


}